package com.lovo.service.impl;

import com.lovo.dao.ClassDAO;
import com.lovo.model.ClassDO;
import com.lovo.service.ClassService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @title
 * @author: luo
 * @date: 2020/11/19 20:43
 */
@Service
public class ClassServiceImpl implements ClassService {

    @Resource
    private ClassDAO classDAO;

    @Override
    public List<ClassDO> find() {
        return classDAO.findAll();
    }

    @Override
    public void save(ClassDO classDO) {
        classDAO.save(classDO);
    }

    @Override
    public void delete(ClassDO classDO) {
        classDAO.delete(classDO);
    }
}
